package com.jxstyle.core.exception;

/**
 * @author fengshuonan
 * @Description 业务异常的封装
 * @date 2016年11月12日 下午5:05:10
 */
public class BizException extends RuntimeException {

	private Integer code;
	private String message;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public BizException(BizExceptionEnum bizExceptionEnum) {
		this.code = bizExceptionEnum.getCode();
		this.message = bizExceptionEnum.getMessage();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
